<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>FormSerialize unit tests</title>

        <link type="text/css"          href="../../../bower_components/qunit/qunit/qunit.css" rel="stylesheet"/>
        <script type="text/javascript" src="../../../bower_components/qunit/qunit/qunit.js"></script>

        <script type="text/javascript" src="../../../bower_components/qunit-tap/lib/qunit-tap.js"></script>
        <script type="text/javascript" src="../../qunitTapGlue.js"></script>

        <!-- test dependencies here -->
        <link rel="stylesheet" href="../../../dist/css/ink.css" type="text/css" />

        <script type="text/javascript" src="../../../src/js/Ink/1/lib.js"></script>
        <script type="text/javascript"  src="../../../bower_components/sinonjs-built/pkg/sinon.js"></script>

        <script type="text/javascript" src="../../../src/js/Ink/UI/FormSerialize/1/lib.js"></script>
        <script>
            Ink.setPath('Ink', '../../../src/js/Ink/');
        </script>
    </head>
    <body>
        <h1 id="qunit-header">Ink.Dom.FormSerialize</h1>
        <h2 id="qunit-banner"></h2>
        <h2 id="qunit-userAgent"></h2>
        <ol id="qunit-tests"></ol>

        <form class="test-form-template">
            <input type="text" name="textfield">
            <input type="radio" name="radio" value="1">
            <input type="radio" name="radio" value="2">
            <input type="checkbox" name="check[]" value="1">
            <input type="checkbox" name="check[]" value="2">
            <button type="submit">Submit</button>
        </form>

        <form class="test-form-template-multival">
            <input type="text" name="textfield">
            <input type="text" name="textfield">
            <input type="radio" name="radio" value="1">
            <input type="radio" name="radio" value="2">
            <input type="checkbox" name="check[]" value="1">
            <input type="checkbox" name="check[]" value="2">
            <button type="submit">Submit</button>
        </form>

        <script type="text/javascript" src="test.js"></script>
    </body>
</html>
